package com.yamaha.bikedesalon.util;

public class LikeItem {

	private final String itemId;
	private final int noLike;

	public LikeItem(final String itemId, final int noLike) {
		this.itemId = itemId;
		this.noLike = noLike;
	}

	public String getItemId() {
		return itemId;
	}

	public int getNoLike() {
		return noLike;
	}

	@Override
	public int hashCode() {
		return getItemId().hashCode();
	}

	@Override
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}

		if (!(o instanceof LikeItem)) {
			return false;
		}

		final LikeItem oppo = (LikeItem) o;
		return this.getItemId().equals(oppo.getItemId());
	}
}
